package DaEr1_2;

import java.util.Scanner;

public class ShuChuZuiDaZhi {
    public static void main(String[] args) {
//        int a=3,b=4,c;
//        c=a>b?a:b;
//        System.out.println(a+" 和"+b+"的最大值为：" + c);
//        int a=7,b=29,c=26,max;
//       max=a>b?(a>c?a:c):(b>c?b:c);
//        System.out.println("max = " + max);
        int a,b,max;
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入a的值：");
         a = scanner.nextInt();
        System.out.println("请输入b的值：");
         b = scanner.nextInt();
        max=a>b?a:b;
        System.out.println("max = " + max);
    }
}
